package Thread.Demo01;

/**
 * @Author Miku
 * @Create 2021/5/10 16:10
 */
public class TestThread extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("看代码"+i);
        }
    }

    public static void main(String[] args) {

        //创建一个线程对象
        TestThread testThread = new TestThread();
        //调用start()方法开启线程
        testThread.start();

        for (int i = 0; i < 1000; i++) {
            System.out.println("学习多线程"+i);
        }
    }

}
